$.ajax({
    url: j_url + "/index/mywallet/is_login",
    type: "GET",
    data: {},
    dataType: "json",
    async: true,
    crossDomain: true,
    success: function(res) {
        console.log(res);
        if (res.code == 1 && res.url == "login") {
            
            window.location.href = 'login.html';
            alert(res.message);
        }
    }
});